package pl.praca.magisterska.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import pl.praca.magisterska.mapper.PersonMapper;
import pl.praca.magisterska.model.Person;

@Service
public class PersonServiceImpl implements PersonService {

	@Autowired
	private PersonMapper personMapper;
	
	public Person selectPerson(Integer idPerson) {
		return personMapper.selectPerson(idPerson);
	}
	
	public Integer checkPersonPassword(Person person){
		return personMapper.checkPersonPassword(person);
	}
	
	public Integer insertPerson(Person person){
		return personMapper.insertPerson(person);
	}
	
	public Integer selectIdPerson(Integer idPerson){
		return personMapper.selectIdPerson(idPerson);
	}
}

